#!/usr/bin/node

const log = console.log,
      Radio = require('./06-radio.js');

const station = {
  freq: '106.7',
  name: 'music radio'
}

const radio = new Radio(station);

radio.on('open',(station)=>{
  log(`${station.freq} FM ${station.name} opened!`);
  log('lalala...');
})

radio.on('stop',(station)=>{
  log(`${station.freq} FM ${station.name} closed!`);
})

